MapSnapshotInterface

interface MapSnapshotInterface

An image snapshot of a map rendered by `map snapshotter`.

Functions

attributions
Link copied to clipboard
abstract fun attributions(): List<String>
Get list of attributions for the sources in this snapshot.
coordinate
Link copied to clipboard
abstract fun coordinate(@NonNull() screenCoordinate: ScreenCoordinate): Point
Calculate geographical coordinates from a point on the snapshot.
image
Link copied to clipboard
abstract fun image(): Image
Get the rendered snapshot `image`.
screenCoordinate
Link copied to clipboard
abstract fun screenCoordinate(@NonNull() coordinate: Point): ScreenCoordinate
Calculate screen coordinate on the snapshot from geographical `coordinate`.

Extensions

bitmap
Link copied to clipboard
fun MapSnapshotInterface.bitmap(): Bitmap
Extension function to obtain Bitmap from snapshotter converted from Image.